<!-- begin sidebar -->
<div id="sidebar">
<?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar() ) : else : ?>

<h2>Search:</h2>
<form method="get" id="searchform" action="<?php bloginfo('url'); ?>">
<div><input type="text" value="<?php echo wp_specialchars($s, 1); ?>" name="s" id="s" />
<input type="submit" id="searchsubmit" value="Go" />
</div>
</form>
<br />

<h2><?php _e('Pages'); ?></h2>
<ul>
<?php wp_list_pages('title_li='); ?>
</ul>
<br />

<?php if (is_home()) { ?>
<h2><?php _e('Archives'); ?></h2>
<ul>
<?php wp_get_archives('type=monthly'); ?>
</ul>
<br />

<h2><?php _e('Categories'); ?></h2>
<ul>
 <?php wp_list_cats('sort_column=id&optioncount=1'); ?>
</ul>
<br />

<h2><?php _e('Blogroll'); ?></h2>
<ul>
<?php wp_get_links(1); ?>
</ul>
<br />

<h2><?php _e('Meta'); ?></h2>
<ul>
<?php wp_register(); ?>
<li><?php wp_loginout(); ?></li>
<li><a href="http://validator.w3.org/check/referer" title="<?php _e('This page validates as XHTML 1.0 Transitional'); ?>"><?php _e('Valid <abbr title="eXtensible HyperText Markup Language">XHTML</abbr>'); ?></a></li>
<li><a href="http://bloggles.info/" title="<?php _e('Personal blogging platform'); ?>">Personal Blogging</a></li>
<?php wp_meta(); ?>
</ul>
<?php } ?>
<?php endif; ?>
<br />
<ul>
<script type="text/javascript"><!--
google_ad_client = "<?php google_pub_id();?>";
google_ad_width = 180;
google_ad_height = 150;
google_ad_format = "180x150_as";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "CC6600";
google_color_url = "CC6600";
google_color_text = "CC6600";
//--></script>

<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</ul>
</div>
<!-- end sidebar -->


